﻿import com.dmotiko.bolacua.*
import com.dmotiko.general.*
import com.dmotiko.util.*
import mx.utils.Delegate;

class BolacuaSite
extends WebSite {
	
	public static var SPANISH:String = "bolacua_spanish";
	public static var ENGLISH:String = "bolacua_english";
	
	public static var HOME:String = "bolacua_home";
	public static var ALOJAMIENTO:String = "bolacua_alojamiento";
	public static var TARIFAS:String = "bolacua_tarifas";
	public static var TARIFAS_MAX:String = "bolacua_tarifas_max";
	public static var CONTACTO:String = "bolacua_contacto";
	public static var COMO_LLEGAR:String = "bolacua_comollegar";
	public static var EVENTOS:String = "bolacua_eventos";
	public static var RESTAURANT:String = "bolacua_restaurant";
	public static var INFRAESTRUCTURA:String = "bolacua_infraestructura";
	
	private var canvas:CanvasBolacua;
	private var mainContainerBolacua:MainContainerBolacua;
	private var mainTextBolacua:MainTextBolacua;
	private var mainPhotoBolacua:MainPhotoBolacua;
	private var mainContentBolacua:MainContentBolacua;
	private var mainBannerBolacua:MovieClip;
	private var photoPopUp:PhotoPopUp;
	private var navBar:NavBarBolacua;
	private var nWindowSize:Number;
		
	private var newsLoader:NewsLoader;
	private var newsData:Array;
	private var promosLoader:PromosLoader;
	private var promosData:Array;
	private var pricesLoader:PricesLoader;
	private var pricesData:Array;
	private var mainPhotosLoader:MainPhotosLoader;
	private var fotosData:Array;
	
	private var newsEngLoader:NewsLoader;
	private var newsEngData:Array;
	private var promosEngLoader:PromosLoader;
	private var promosEngData:Array;
	private var pricesEngLoader:PricesLoader;
	private var pricesEngData:Array;
	private var mainPhotosEngLoader:MainPhotosLoader;
	private var fotosEngData:Array;
	
	public static function init(timeline:MovieClip){
		if(!app) app = new BolacuaSite(timeline);
	}
	
	public static function getApp():BolacuaSite {
		return BolacuaSite(app);
	}
		
	private function BolacuaSite(timeline){
		super(timeline);
		initSite();
	}
	
	private function initSite(){
		log("BolacuaSite | initSite");
		sLanguage = SPANISH;
		sSection = HOME;
		initStage();
		loadExternalData();
		initSections();
	}
	
	private function initStage():Void {
		Stage.align = "TL";
		Stage.scaleMode = "noScale";
	}
	
	private function loadExternalData():Void {
		pricesLoader = new PricesLoader();
		pricesLoader.run("prices.xml");
		pricesLoader.addEventListener( DataXMLLoader.DATA_LOADED, Delegate.create(this, pricesLoaded) );
		
		pricesEngLoader = new PricesLoader();
		pricesEngLoader.run("prices_eng.xml");
		pricesEngLoader.addEventListener( DataXMLLoader.DATA_LOADED, Delegate.create(this, pricesEngLoaded) );
		
		newsLoader = new NewsLoader();
		newsLoader.run("news.xml");
		newsLoader.addEventListener( DataXMLLoader.DATA_LOADED,  Delegate.create(this, newsLoaded) );
		
		newsEngLoader = new NewsLoader();
		newsEngLoader.run("news_eng.xml");
		newsEngLoader.addEventListener( DataXMLLoader.DATA_LOADED,  Delegate.create(this, newsEngLoaded) );
		
		promosLoader = new PromosLoader();
		promosLoader.run("promos.xml");
		promosLoader.addEventListener( DataXMLLoader.DATA_LOADED, Delegate.create(this, promosLoaded) );
		
		promosEngLoader = new PromosLoader();
		promosEngLoader.run("promos_eng.xml");
		promosEngLoader.addEventListener( DataXMLLoader.DATA_LOADED, Delegate.create(this, promosEngLoaded) );
		
		mainPhotosLoader = new MainPhotosLoader();
		mainPhotosLoader.run("fotos.xml");
		mainPhotosLoader.addEventListener( DataXMLLoader.DATA_LOADED, Delegate.create(this, fotosLoaded) );
		
		mainPhotosEngLoader = new MainPhotosLoader();
		mainPhotosEngLoader.run("fotos.xml");
		mainPhotosEngLoader.addEventListener( DataXMLLoader.DATA_LOADED, Delegate.create(this, fotosEngLoaded) );
	}
	
	private function fotosLoaded( evnt ):Void {
		fotosData = evnt.data;
		checkXML();
	}
	
	private function fotosEngLoaded( evnt ):Void {
		fotosEngData = evnt.data;
		checkXML();
	}
	
	private function checkXML():Void {
		if ( newsData && newsEngData && promosData && promosEngData && fotosData && fotosEngData && pricesData && pricesEngData ) initLoader();
	}
	
	private function pricesLoaded( evnt ):Void {
		pricesData = evnt.data;
		checkXML();
	}
	
	private function pricesEngLoaded( evnt ):Void {
		pricesEngData = evnt.data;
		checkXML();
	}
	
	private function promosLoaded(evnt):Void {
		this.promosData = evnt.data;
		checkXML();
	}
	
	private function promosEngLoaded(evnt):Void {
		this.promosEngData = evnt.data;
		checkXML();
	}
	
	private function newsLoaded(evnt):Void {
		this.newsData = evnt.data;
		checkXML();
	}
	
	private function newsEngLoaded(evnt):Void {
		this.newsEngData = evnt.data;
		checkXML();
	}
	
	private function initLoader():Void {
		var checker:MovieClip = DummyFactory.getNextDummy(timeline);
		var loader:LoaderBolacua = timeline.mcLoader;
		checker.onEnterFrame=function (){
			var p = ((_root.getBytesLoaded()/_root.getBytesTotal())*100);
			p = Math.round(p);
			//trace("BolacuaSite | initLoader= "+loader+" | "+p);
			loader.setPos(p);
			if(p == 100) delete this.onEnterFrame;
		}

		loader.addEventListener( BaseClipEvent.CHANGED, Delegate.create(this, loadComplete));
		return;
	}
	private function firstPhotoLoaded():Void {
		this.mainBannerBolacua.show();
	}
	private function loadComplete():Void {
		timeline.gotoAndStop(2);
	}
	private function initSections():Void {
		this.canvas = timeline.canvas;
		//addEventListener( BolacuaSite.SECTION_CHANGED, Delegate.create(this.canvas, canvas.sectionChanged));
		return;
	}
	
	public function getMainPhotos():Array {
		if ( sLanguage == SPANISH) return this.fotosData;
		else return this.fotosEngData;
	}
	
	public function getPrices():Array {
		if ( sLanguage == SPANISH) return this.pricesData;
		else return this.pricesEngData;
	}
	
	public function getNews():Array {
		if( sLanguage == SPANISH) return this.newsData;
		else return this.newsEngData;
	}
	
	public function getPromos():Array {
		if ( sLanguage == SPANISH) return this.promosData;
		else return this.promosEngData;
	}
	
	public function setMainTextBolacua(mt:MainTextBolacua):Void {
		this.mainTextBolacua = mt;
	}
	public function getMainTextBolacua():MainTextBolacua {
		return this.mainTextBolacua;
	}
	
	public function getCanvasBolacua():CanvasBolacua {
		return this.canvas;
	}
	
	public function setMainPhotoBolacua(mp:MainPhotoBolacua):Void {
		this.mainPhotoBolacua = mp;
		mp.addEventListener( MainPhotoBolacua.FIRST_PHOTO_LOADED, Delegate.create(this, firstPhotoLoaded));
	}
	public function getMainPhotoBolacua():MainPhotoBolacua {
		return this.mainPhotoBolacua;
	}
	
	public function setMainContentBolacua(mc:MainContentBolacua):Void {
		this.mainContentBolacua = mc;
	}
	public function getMainContentBolacua():MainContentBolacua {
		return this.mainContentBolacua;
	}
	public function setMainContainerBolacua(mc:MainContainerBolacua):Void {
		this.mainContainerBolacua = mc;
	}
	public function getMainContainerBolacua():MainContainerBolacua {
		return this.mainContainerBolacua;
	}
	
	public function setMainBannerBolacua(mb:MovieClip):Void {
		this.mainBannerBolacua = mb;
		firstPhotoLoaded();
	}
	public function getMainBannerBolacua():MovieClip {
		return this.mainBannerBolacua;
	}
	
	public function setNavBar(navBar:NavBarBolacua):Void {
		this.navBar = navBar;
	}
	public function getNavBar():NavBarBolacua { 
		return this.navBar; 
	}
	
	public function getPhotoPopUp():PhotoPopUp {
		return this.photoPopUp;
	}
	public function setPhotoPopUp(ppu:PhotoPopUp):Void {
		this.photoPopUp = ppu;
	}
	
	public function getWindowSize():Number {
		return this.nWindowSize;
	}
	
	public function setWindowSize(nHeight:Number, scrollTo:Number):Void {
		this.nWindowSize = nHeight;
		//_root.bBrowser, variable que le pasa el index.php para saber que está dentro de un browser
		if( _root.bBrowser ){
			if (scrollTo) getURL("javascript:setWindowSize(" + nHeight + ", " + scrollTo + ");");
			else getURL("javascript:setWindowSize(" + nHeight + ");");
		}
	}
	
	public function setWindowScroll(nScroll:Number):Void {
		//_root.bBrowser, variable que le pasa el index.php para saber que está dentro de un browser
		if( _root.bBrowser ){
			getURL("javascript:scrollWindowTo(" + nScroll + ");");
		}
	}
	
	public function getRooms():Array {
		if ( sLanguage == SPANISH ) return getSpRooms();
		else return getEngRooms();
	}
	public function getSpRooms():Array {
				
		var aRooms:Array = new Array();

		var room:RoomData;
		var aPhotos:Array; 		
		var photo:PhotoData;
		var aFeatures:Array

		
		/*-- start room --*/

		room = new RoomData();
		room.setTitle("Bolacua Apart");
		room.setLongTitle('Bolacua Apart');
		room.setDescription("Departamento doble (ampliable a cuádruple)");
		room.setIcon("img/icono-apart.png");
		
		aPhotos = new Array();
		photo = new PhotoData();
		photo.setTitle("Bolacua Apart");
		photo.setDescription("detalle 1 de 3");
		photo.setSrc("img/a_maxim19.jpg");
		photo.setHorizontal(true);		
		photo.setIcon("img/alojamiento_mini19.png");
		aPhotos.push(photo);
		photo = new PhotoData();
		photo.setTitle("Bolacua Apart");
		photo.setDescription("detalle 2 de 3");
		photo.setSrc("img/a_maxim20.jpg");
		photo.setHorizontal(true);
		photo.setIcon("img/alojamiento_mini20.png");
		aPhotos.push(photo);
		photo = new PhotoData();
		photo.setTitle("Bolacua Apart");
		photo.setDescription("detalle 3 de 3");
		photo.setSrc("img/a_maxim21.jpg");
		photo.setHorizontal(true);
		photo.setIcon("img/alojamiento_mini21.png");
		aPhotos.push(photo);
		room.setPhotos(aPhotos);
		
		aFeatures = new Array();
		aFeatures.push( new FeatureData("Cama matrimonial de algarrobo") );
		aFeatures.push( new FeatureData("Cocina completa con comedor") );
		aFeatures.push( new FeatureData("Sala de estar con futón (2 personas adicionales)") );
		aFeatures.push( new FeatureData("Hogar a leña") );
		aFeatures.push( new FeatureData("Aire Acondicionado\nFrío/ Calor") );
		aFeatures.push( new FeatureData('TV LCD 32" Satelital') );
		aFeatures.push( new FeatureData("WI FI") );
		aFeatures.push( new FeatureData("Secador de pelo") );
		aFeatures.push( new FeatureData("Baño completo con hidromasaje") );
		aFeatures.push( new FeatureData("Habitación matrimonial en planta alta") );
		aFeatures.push( new FeatureData("Cofre de seguridad") );
		aFeatures.push( new FeatureData("Vajilla completa") );
		aFeatures.push( new FeatureData("Heladera NO FROST") );
		room.setFeatures(aFeatures);
		
		aRooms.push(room);
		
		/*-- end room --*/
		
		/*-- start room --*/

		room = new RoomData();
		room.setTitle("Suite Bolacua Deluxe");
		room.setLongTitle('Suite Bolacua Deluxe');
		room.setDescription("Habitacion doble deluxe");
		room.setIcon("img/icono-deluxe_01.png");
		
		aPhotos = new Array();
		photo = new PhotoData();
		photo.setTitle("Suite Bolacua Deluxe");
		photo.setDescription("detalle 1 de 3");
		photo.setSrc("img/a_maxim22.jpg");
		photo.setHorizontal(true);		
		photo.setIcon("img/alojamiento_mini22.png");
		aPhotos.push(photo);
		photo = new PhotoData();
		photo.setTitle("Suite Bolacua Deluxe");
		photo.setDescription("detalle 2 de 3");
		photo.setSrc("img/a_maxim23.jpg");
		photo.setHorizontal(true);
		photo.setIcon("img/alojamiento_mini23.png");
		aPhotos.push(photo);
		photo = new PhotoData();
		photo.setTitle("Suite Bolacua Deluxe");
		photo.setDescription("detalle 3 de 3");
		photo.setSrc("img/a_maxim24.jpg");
		photo.setHorizontal(true);
		photo.setIcon("img/alojamiento_mini24.png");
		aPhotos.push(photo);
		room.setPhotos(aPhotos);
		
		aFeatures = new Array();
		aFeatures.push( new FeatureData("Somier king size") );
		aFeatures.push( new FeatureData("Secador de pelo") );
		aFeatures.push( new FeatureData("Aire Acondicionado\nFrío/ Calor") );
		aFeatures.push( new FeatureData("Ventilador de techo") );
		aFeatures.push( new FeatureData("Baño con hidromasaje") );
		aFeatures.push( new FeatureData('Vista Panorámica\n(paisaje rural)') );
		aFeatures.push( new FeatureData("Frigobar") );
		aFeatures.push( new FeatureData("Estacionamiento") );
		aFeatures.push( new FeatureData("NO acceso discapacitado") );
		aFeatures.push( new FeatureData("Hasta 1 Cama adicional") );
		aFeatures.push( new FeatureData('TV LCD 32" Satelital') );
		aFeatures.push( new FeatureData("Cofre de seguridad") );
		aFeatures.push( new FeatureData("Room service de 10 a 23hs\n(con cargo adicional)") );
		aFeatures.push( new FeatureData("WI-FI") );
		aFeatures.push( new FeatureData("Calefacción a gas") );
		room.setFeatures(aFeatures);
		
		aRooms.push(room);
		
		/*-- end room --*/
		
		/*-- start room --*/

		room = new RoomData();
		room.setTitle("Suite Bolacua");
		room.setLongTitle('Suite Bolacua "Doble Superior"');
		room.setDescription("- habitacion doble superior");
		room.setIcon("img/icono-bolacua.png");
		
		aPhotos = new Array();
		photo = new PhotoData();
		photo.setTitle("Suite Bolacua");
		photo.setDescription("detalle 1 de 3");
		photo.setSrc("img/a_maxim1.jpg");
		photo.setIcon("img/alojamiento_mini1.png");
		aPhotos.push(photo);
		photo = new PhotoData();
		photo.setTitle("Suite Bolacua");
		photo.setDescription("detalle 2 de 3");
		photo.setSrc("img/a_maxim2.jpg");
		photo.setHorizontal(true);
		photo.setIcon("img/alojamiento_mini2.png");
		aPhotos.push(photo);
		photo = new PhotoData();
		photo.setTitle("Suite Bolacua");
		photo.setDescription("detalle 3 de 3");
		photo.setSrc("img/a_maxim3.jpg");
		photo.setIcon("img/alojamiento_mini3.png");
		aPhotos.push(photo);
		room.setPhotos(aPhotos);
		
		aFeatures = new Array();
		aFeatures.push( new FeatureData("Somier King Size") );
		aFeatures.push( new FeatureData("Secador de Pelo") );
		aFeatures.push( new FeatureData("Aire Acondicionado\nFrío/ Calor") );
		aFeatures.push( new FeatureData("Ventilador de techo") );
		aFeatures.push( new FeatureData("Baño con Hidromasaje") );
		aFeatures.push( new FeatureData("Vista Panorámica\n(paisaje rural)") );
		aFeatures.push( new FeatureData("Frigobar") );
		aFeatures.push( new FeatureData("Estacionamiento") );
		aFeatures.push( new FeatureData("NO Acceso a discapacitados") );
		aFeatures.push( new FeatureData("Hasta 1 Cama adicional") );
		aFeatures.push( new FeatureData("Room service de 10 a 23hs\n(con cargo adicional)") );
		room.setFeatures(aFeatures);
		
		aRooms.push(room);
		
		/*-- end room --*/
		
		/*-- start room --*/

		room = new RoomData();
		room.setTitle("Los Prados Deluxe");
		room.setLongTitle('Los Prados Deluxe');
		room.setDescription("Habitacion doble superior deluxe");
		room.setIcon("img/icono-deluxe_02.png");
		
		aPhotos = new Array();
		photo = new PhotoData();
		photo.setTitle("Los Prados Deluxe");
		photo.setDescription("detalle 1 de 3");
		photo.setSrc("img/a_maxim25.jpg");
		photo.setHorizontal(true);		
		photo.setIcon("img/alojamiento_mini25.png");
		aPhotos.push(photo);
		photo = new PhotoData();
		photo.setTitle("Los Prados Deluxe");
		photo.setDescription("detalle 2 de 3");
		photo.setSrc("img/a_maxim26.jpg");
		photo.setHorizontal(true);
		photo.setIcon("img/alojamiento_mini26.png");
		aPhotos.push(photo);
		photo = new PhotoData();
		photo.setTitle("Los Prados Deluxe");
		photo.setDescription("detalle 3 de 3");
		photo.setSrc("img/a_maxim27.jpg");
		photo.setHorizontal(true);
		photo.setIcon("img/alojamiento_mini27.png");
		aPhotos.push(photo);
		room.setPhotos(aPhotos);
		
		aFeatures = new Array();
		aFeatures.push( new FeatureData("Somier XL") );
		aFeatures.push( new FeatureData("Secador de pelo") );
		aFeatures.push( new FeatureData("Aire Acondicionado\nFrío/ Calor") );
		aFeatures.push( new FeatureData("Ventilador de techo") );
		aFeatures.push( new FeatureData("Baño completo (Prados 3 no cuenta con hidromasaje, solo con Bañadera. Prados 4 si cuenta con hidro.)") );
		aFeatures.push( new FeatureData('Vista Panorámica') );
		aFeatures.push( new FeatureData("Frigobar") );
		aFeatures.push( new FeatureData("Estacionamiento") );
		aFeatures.push( new FeatureData("Acceso discapacitado") );
		aFeatures.push( new FeatureData("Hasta 1 Cama adicional") );
		aFeatures.push( new FeatureData('TV LCD 32" Satelital') );
		aFeatures.push( new FeatureData("Cofre de seguridad") );
		aFeatures.push( new FeatureData("Room service de 10 a 23hs\n(con cargo adicional)") );
		aFeatures.push( new FeatureData("WI-FI") );
		aFeatures.push( new FeatureData("Calefacción a gas") );
		room.setFeatures(aFeatures);
		
		aRooms.push(room);
		
		/*-- end room --*/
		
		/*-- start room --*/

		room = new RoomData();
		room.setTitle("Los Prados");
		room.setLongTitle('Suite Los Prados "Doble Superior"');
		room.setDescription("- habitacion doble superior");
		room.setIcon("img/icono-los-prados.png");
		
		aPhotos = new Array();
		photo = new PhotoData();
		photo.setTitle("Suite Los Prados");
		photo.setDescription("detalle 1 de 3");
		photo.setSrc("img/a_maxim4.jpg");
		photo.setIcon("img/alojamiento_mini4.png");
		photo.setHorizontal(true);
		aPhotos.push(photo);
		photo = new PhotoData();
		photo.setTitle("Suite Los Prados");
		photo.setDescription("detalle 2 de 3");
		photo.setSrc("img/a_maxim5.jpg");
		photo.setIcon("img/alojamiento_mini5.png");
		photo.setHorizontal(true);
		aPhotos.push(photo);
		photo = new PhotoData();
		photo.setTitle("Suite Los Prados");
		photo.setDescription("detalle 3 de 3");
		photo.setSrc("img/a_maxim6.jpg");
		photo.setIcon("img/alojamiento_mini6.png");
		photo.setHorizontal(true);
		aPhotos.push(photo);
		room.setPhotos(aPhotos);
		
		aFeatures = new Array();
		aFeatures.push( new FeatureData("Somier XL") );
		aFeatures.push( new FeatureData("Secador de Pelo") );
		aFeatures.push( new FeatureData("Aire Acondicionado\nFrío/ Calor") );
		aFeatures.push( new FeatureData("Baño con bañera") );
		aFeatures.push( new FeatureData("Vista Panorámica\n(paisaje rural, parcialmente obstruída)") );
		aFeatures.push( new FeatureData("Frigobar") );
		aFeatures.push( new FeatureData("Estacionamiento") );
		aFeatures.push( new FeatureData("Acceso a discapacitados") );
		aFeatures.push( new FeatureData("Hasta 1 Cama adicional\n(1 adulto)") );
		aFeatures.push( new FeatureData("Room service de 10 a 23hs\n(con cargo adicional)") );
		room.setFeatures(aFeatures);
		
		aRooms.push(room);
		
		/*-- end room --*/
		
		/*-- start room --*/

		room = new RoomData();
		room.setTitle("Habitacion Los Patos");
		room.setLongTitle('Habitacion Los Patos "Doble Estandar"');
		room.setDescription("- habitacion doble standar");
		room.setIcon("img/icono-los-patos.png");
		
		aPhotos = new Array();
		photo = new PhotoData();
		photo.setTitle("Habitacion Los Patos");
		photo.setDescription("detalle 1 de 3");
		photo.setSrc("img/a_maxim7.jpg");
		photo.setIcon("img/alojamiento_mini7.png");
		photo.setHorizontal(true);
		aPhotos.push(photo);
		photo = new PhotoData();
		photo.setTitle("Habitacion Los Patos");
		photo.setDescription("detalle 2 de 3");
		photo.setSrc("img/a_maxim8.jpg");
		photo.setIcon("img/alojamiento_mini8.png");
		aPhotos.push(photo);
		photo = new PhotoData();
		photo.setTitle("Habitacion Los Patos");
		photo.setDescription("detalle 3 de 3");
		photo.setSrc("img/a_maxim9.jpg");
		photo.setIcon("img/alojamiento_mini9.png");
		aPhotos.push(photo);
		room.setPhotos(aPhotos);
		
		aFeatures = new Array();
		aFeatures.push( new FeatureData("Somier XL") );
		aFeatures.push( new FeatureData("Secador de Pelo") );
		aFeatures.push( new FeatureData("Aire Acondicionado\nFrío/ Calor") );
		aFeatures.push( new FeatureData("Baño con duchador\n(platos de ducha)") );
		aFeatures.push( new FeatureData("Vista Panorámica\n(paisaje rural y predio parcialmente cubierto)") );
		aFeatures.push( new FeatureData("Estacionamiento") );
		aFeatures.push( new FeatureData("Acceso a discapacitados") );
		aFeatures.push( new FeatureData("Hasta 1 Cama adicional\n(1 adulto)") );
		room.setFeatures(aFeatures);
		
		aRooms.push(room);
		
		/*-- end room --*/
		
		/*-- start room --*/

		room = new RoomData();
		room.setTitle("Habitacion Los Girasoles");
		room.setLongTitle('Habitacion Los Girasoles "Cuadruple Superior"');
		room.setDescription("- habitacion cuadruple superior");
		room.setIcon("img/icono-los-girasoles.png");
		
		aPhotos = new Array();
		photo = new PhotoData();
		photo.setTitle("Habitacion Los Girasoles");
		photo.setDescription("detalle 1 de 3");
		photo.setSrc("img/a_maxim10.jpg");
		photo.setHorizontal(true);
		photo.setIcon("img/alojamiento_mini10.png");
		aPhotos.push(photo);
		photo = new PhotoData();
		photo.setTitle("Habitacion Los Girasoles");
		photo.setDescription("detalle 2 de 3");
		photo.setSrc("img/a_maxim11.jpg");
		photo.setIcon("img/alojamiento_mini11.png");
		aPhotos.push(photo);
		photo = new PhotoData();
		photo.setTitle("Habitacion Los Girasoles");
		photo.setDescription("detalle 3 de 3");
		photo.setSrc("img/a_maxim12.jpg");
		photo.setHorizontal(true);
		photo.setIcon("img/alojamiento_mini12.png");
		aPhotos.push(photo);
		room.setPhotos(aPhotos);
		
		aFeatures = new Array();
		aFeatures.push( new FeatureData("Cama matrimonial") );
		aFeatures.push( new FeatureData("2 camas individuales\nde una plaza") );
		aFeatures.push( new FeatureData("Hasta 2 camas adicionales (2 adultos)") );
		aFeatures.push( new FeatureData("Secador de Pelo") );
		aFeatures.push( new FeatureData("Aire Acondicionado\nFrío/ Calor") );
		aFeatures.push( new FeatureData("Ventilador de techo") );
		aFeatures.push( new FeatureData("Vista Panorámica\n(paisaje rural parcialmente cubierta)") );
		aFeatures.push( new FeatureData("Estacionamiento") );
		aFeatures.push( new FeatureData("Acceso por escalera") );
		room.setFeatures(aFeatures);
		
		aRooms.push(room);
		
		/*-- end room --*/
		
		/*-- start room --*/

		room = new RoomData();
		room.setTitle("Habitacion Los Cedros");
		room.setLongTitle('Habitacion Los Cedros "Cuadruple Estándar"');
		room.setDescription("- habitacion cuadruple standar");
		room.setIcon("img/icono-los-cedros.png");
		
		aPhotos = new Array();
		photo = new PhotoData();
		photo.setTitle("Habitacion Los Cedros");
		photo.setDescription("detalle 1 de 3");
		photo.setSrc("img/a_maxim13.jpg");
		photo.setHorizontal(true);
		photo.setIcon("img/alojamiento_mini13.png");
		aPhotos.push(photo);
		photo = new PhotoData();
		photo.setTitle("Habitacion Los Cedros");
		photo.setDescription("detalle 2 de 3");
		photo.setSrc("img/a_maxim14.jpg");
		photo.setHorizontal(true);
		photo.setIcon("img/alojamiento_mini14.png");
		aPhotos.push(photo);
		photo = new PhotoData();
		photo.setTitle("Habitacion Los Cedros");
		photo.setDescription("detalle 3 de 3");
		photo.setSrc("img/a_maxim15.jpg");
		photo.setIcon("img/alojamiento_mini15.png");
		aPhotos.push(photo);
		room.setPhotos(aPhotos);
		
		aFeatures = new Array();
		aFeatures.push( new FeatureData("Somier XL") );
		aFeatures.push( new FeatureData("2 camas individuales\nde una plaza") );
		aFeatures.push( new FeatureData("Secador de Pelo") );
		aFeatures.push( new FeatureData("Baño con duchador\n(platos de ducha)") );
		aFeatures.push( new FeatureData("Aire Acondicionado\nFrío/ Calor") );
		aFeatures.push( new FeatureData("Ventilador de techo") );
		aFeatures.push( new FeatureData("Vista Panorámica\n(paisaje rural parcialmente cubierta)") );
		aFeatures.push( new FeatureData("Estacionamiento") );
		aFeatures.push( new FeatureData("Acceso por escalera a las camas individuales (entrepiso)") );
		aFeatures.push( new FeatureData("Hasta 2 Camas adicionales\n(1 adulto y 1 niño)") );
		room.setFeatures(aFeatures);
		
		aRooms.push(room);
		
		/*-- end room --*/
				
		return aRooms;
		
	}
	
	public function getEngRooms():Array {
				
		var aRooms:Array = new Array();

		var room:RoomData;
		var aPhotos:Array; 		
		var photo:PhotoData;
		var aFeatures:Array

		/*-- start room --*/

		room = new RoomData();
		room.setTitle("Bolacua Apart");
		room.setLongTitle('Bolacua Apart');
		room.setDescription("Double apartment (expandable to quadruple)");
		room.setIcon("img/icono-apart.png");
		
		aPhotos = new Array();
		photo = new PhotoData();
		photo.setTitle("Bolacua Apart");
		photo.setDescription("detalle 1 de 3");
		photo.setSrc("img/a_maxim19.jpg");
		photo.setHorizontal(true);		
		photo.setIcon("img/alojamiento_mini19.png");
		aPhotos.push(photo);
		photo = new PhotoData();
		photo.setTitle("Bolacua Apart");
		photo.setDescription("detalle 2 de 3");
		photo.setSrc("img/a_maxim20.jpg");
		photo.setHorizontal(true);
		photo.setIcon("img/alojamiento_mini20.png");
		aPhotos.push(photo);
		photo = new PhotoData();
		photo.setTitle("Bolacua Apart");
		photo.setDescription("detalle 3 de 3");
		photo.setSrc("img/a_maxim21.jpg");
		photo.setHorizontal(true);
		photo.setIcon("img/alojamiento_mini21.png");
		aPhotos.push(photo);
		room.setPhotos(aPhotos);
		
		aFeatures = new Array();
		aFeatures.push( new FeatureData("1 double carob wood bed") );
		aFeatures.push( new FeatureData("Fully equipped Kitchen\nwith dinning room") );
		aFeatures.push( new FeatureData("Play room with additional futon (for 2)") );
		aFeatures.push( new FeatureData("Chimney") );
		aFeatures.push( new FeatureData("Air conditioning cold/warm") );
		aFeatures.push( new FeatureData('TV LCD 32" Satellite') );
		aFeatures.push( new FeatureData("WI FI") );
		aFeatures.push( new FeatureData("Hair dryer") );
		aFeatures.push( new FeatureData("Full equipped bathroom\nwith Jacuzzi") );
		aFeatures.push( new FeatureData("1 double bed in 2nd level") );
		aFeatures.push( new FeatureData("Safety box") );
		aFeatures.push( new FeatureData("Complete set of dishes") );
		aFeatures.push( new FeatureData("Refrigerator NO FROST") );
		room.setFeatures(aFeatures);
		
		aRooms.push(room);
		
		/*-- end room --*/
		
		/*-- start room --*/

		room = new RoomData();
		room.setTitle("Suite Bolacua Deluxe");
		room.setLongTitle('Suite Bolacua Deluxe');
		room.setDescription("Double deluxe room");
		room.setIcon("img/icono-deluxe_01.png");
		
		aPhotos = new Array();
		photo = new PhotoData();
		photo.setTitle("Suite Bolacua Deluxe");
		photo.setDescription("detail 1 of 3");
		photo.setSrc("img/a_maxim22.jpg");
		photo.setHorizontal(true);		
		photo.setIcon("img/alojamiento_mini22.png");
		aPhotos.push(photo);
		photo = new PhotoData();
		photo.setTitle("Suite Bolacua Deluxe");
		photo.setDescription("detail 2 of 3");
		photo.setSrc("img/a_maxim23.jpg");
		photo.setHorizontal(true);
		photo.setIcon("img/alojamiento_mini23.png");
		aPhotos.push(photo);
		photo = new PhotoData();
		photo.setTitle("Suite Bolacua Deluxe");
		photo.setDescription("detail 3 of 3");
		photo.setSrc("img/a_maxim24.jpg");
		photo.setHorizontal(true);
		photo.setIcon("img/alojamiento_mini24.png");
		aPhotos.push(photo);
		room.setPhotos(aPhotos);
		
		aFeatures = new Array();
		aFeatures.push( new FeatureData("Somier king size") );
		aFeatures.push( new FeatureData("Hair dryer") );
		aFeatures.push( new FeatureData("Air conditioning\ncold/warm") );
		aFeatures.push( new FeatureData("Ceiling fan") );
		aFeatures.push( new FeatureData("Private bath w/ jacuzzi") );
		aFeatures.push( new FeatureData('Panoramic view\n(rural landscape)') );
		aFeatures.push( new FeatureData("Small fridge") );
		aFeatures.push( new FeatureData("Private parking") );
		aFeatures.push( new FeatureData("NO facilities for disabled guests") );
		aFeatures.push( new FeatureData("One additional bed can be arranged (1 adult)") );
		aFeatures.push( new FeatureData('TV LCD 32" Satellite') );
		aFeatures.push( new FeatureData("Safety box") );
		aFeatures.push( new FeatureData("Room service from 10AM to 11PM (w/add charge)") );
		aFeatures.push( new FeatureData("WI-FI") );
		aFeatures.push( new FeatureData("Heating (gas)") );
		room.setFeatures(aFeatures);
		
		aRooms.push(room);
		
		/*-- end room --*/		
		
		/*-- start room --*/

		room = new RoomData();
		room.setTitle("Bolacuá Suite");
		room.setLongTitle('Bolacuá Suite "Double Superior"');
		room.setDescription("- Double Superior room");
		room.setIcon("img/icono-bolacua.png");
		
		aPhotos = new Array();
		photo = new PhotoData();
		photo.setTitle("Bolacuá Suite");
		photo.setDescription("detail - 1 of 3");
		photo.setSrc("img/a_maxim1.jpg");
		photo.setIcon("img/alojamiento_mini1.png");
		aPhotos.push(photo);
		photo = new PhotoData();
		photo.setTitle("Bolacuá Suite");
		photo.setDescription("detail - 2 of 3");
		photo.setSrc("img/a_maxim2.jpg");
		photo.setHorizontal(true);
		photo.setIcon("img/alojamiento_mini2.png");
		aPhotos.push(photo);
		photo = new PhotoData();
		photo.setTitle("Bolacuá Suite");
		photo.setDescription("detail - 3 of 3");
		photo.setSrc("img/a_maxim3.jpg");
		photo.setIcon("img/alojamiento_mini3.png");
		aPhotos.push(photo);
		room.setPhotos(aPhotos);
		
		aFeatures = new Array();
		aFeatures.push( new FeatureData("King Size bed") );
		aFeatures.push( new FeatureData("Hair dryer") );
		aFeatures.push( new FeatureData("Air conditioning\ncold/warm") );
		aFeatures.push( new FeatureData("Ceiling fan") );
		aFeatures.push( new FeatureData("Private bath w/Jacuzzi") );
		aFeatures.push( new FeatureData("Panoramic view\n(rural landscape)") );
		aFeatures.push( new FeatureData("Small fridge") );
		aFeatures.push( new FeatureData("Private parking") );
		aFeatures.push( new FeatureData("NO facilities for disabled guests") );
		aFeatures.push( new FeatureData("One additional bed can\nbe arranged (1 adult)") );
		aFeatures.push( new FeatureData("Room service from 10AM to 11PM (w/add charge)") );
		room.setFeatures(aFeatures);
		
		aRooms.push(room);
		
		/*-- end room --*/
		
		/*-- start room --*/

		room = new RoomData();
		room.setTitle("Los Prados Deluxe");
		room.setLongTitle('Los Prados Deluxe');
		room.setDescription("Double room deluxe");
		room.setIcon("img/icono-deluxe_02.png");
		
		aPhotos = new Array();
		photo = new PhotoData();
		photo.setTitle("Los Prados Deluxe");
		photo.setDescription("detail 1 of 3");
		photo.setSrc("img/a_maxim25.jpg");
		photo.setHorizontal(true);		
		photo.setIcon("img/alojamiento_mini25.png");
		aPhotos.push(photo);
		photo = new PhotoData();
		photo.setTitle("Los Prados Deluxe");
		photo.setDescription("detail 1 of 3");
		photo.setSrc("img/a_maxim26.jpg");
		photo.setHorizontal(true);
		photo.setIcon("img/alojamiento_mini26.png");
		aPhotos.push(photo);
		photo = new PhotoData();
		photo.setTitle("Los Prados Deluxe");
		photo.setDescription("detail 1 of 3");
		photo.setSrc("img/a_maxim27.jpg");
		photo.setHorizontal(true);
		photo.setIcon("img/alojamiento_mini27.png");
		aPhotos.push(photo);
		room.setPhotos(aPhotos);
		
		aFeatures = new Array();
		aFeatures.push( new FeatureData("Somier XL") );
		aFeatures.push( new FeatureData("Hair dryer") );
		aFeatures.push( new FeatureData("Air conditioning\ncold/warm") );
		aFeatures.push( new FeatureData("Ceiling fan") );
		aFeatures.push( new FeatureData("Fully equipped bathroom") );
		aFeatures.push( new FeatureData('Panoramic view') );
		aFeatures.push( new FeatureData("Small fridge") );
		aFeatures.push( new FeatureData("Private parking") );
		aFeatures.push( new FeatureData("Facilities for disabled guests") );
		aFeatures.push( new FeatureData("One additional bed can be arranged (1 adult)") );
		aFeatures.push( new FeatureData('Satellite TV LCD 32"') );
		aFeatures.push( new FeatureData("Safety Box") );
		aFeatures.push( new FeatureData("Room service from 10AM to 11PM (w/add charge)") );
		aFeatures.push( new FeatureData("WI-FI") );
		aFeatures.push( new FeatureData("Heating (gas)") );
		room.setFeatures(aFeatures);
		
		aRooms.push(room);
		
		/*-- end room --*/
		
		/*-- start room --*/

		room = new RoomData();
		room.setTitle("Los Prados Suite");
		room.setLongTitle('Los Prados Suite "Double Superior"');
		room.setDescription("- double superior room");
		room.setIcon("img/icono-los-prados.png");
		
		aPhotos = new Array();
		photo = new PhotoData();
		photo.setTitle("Los Prados Suite");
		photo.setDescription("detail 1 of 3");
		photo.setSrc("img/a_maxim4.jpg");
		photo.setIcon("img/alojamiento_mini4.png");
		photo.setHorizontal(true);
		aPhotos.push(photo);
		photo = new PhotoData();
		photo.setTitle("Los Prados Suite");
		photo.setDescription("detail 2 of 3");
		photo.setSrc("img/a_maxim5.jpg");
		photo.setIcon("img/alojamiento_mini5.png");
		photo.setHorizontal(true);
		aPhotos.push(photo);
		photo = new PhotoData();
		photo.setTitle("Los Prados Suite");
		photo.setDescription("detail 3 of 3");
		photo.setSrc("img/a_maxim6.jpg");
		photo.setIcon("img/alojamiento_mini6.png");
		photo.setHorizontal(true);
		aPhotos.push(photo);
		room.setPhotos(aPhotos);
		
		aFeatures = new Array();
		aFeatures.push( new FeatureData("XL bed") );
		aFeatures.push( new FeatureData("Hair dryer") );
		aFeatures.push( new FeatureData("Air conditioning\ncold/warm") );
		aFeatures.push( new FeatureData("Private bath with bath tub") );
		aFeatures.push( new FeatureData("Panoramic view\n(rural landscape, partial)") );
		aFeatures.push( new FeatureData("Small fridge") );
		aFeatures.push( new FeatureData("Parking") );
		aFeatures.push( new FeatureData("Access for people with disability") );
		aFeatures.push( new FeatureData("One additional bed can\nbe arranged (1 adult)") );
		room.setFeatures(aFeatures);
		
		aRooms.push(room);
		
		/*-- end room --*/
		
		/*-- start room --*/

		room = new RoomData();
		room.setTitle("Los Patos Room");
		room.setLongTitle('Los Patos Room "Double Standard"');
		room.setDescription("- double standard room");
		room.setIcon("img/icono-los-patos.png");
		
		aPhotos = new Array();
		photo = new PhotoData();
		photo.setTitle("Los Patos Room");
		photo.setDescription("detail 1 of 3");
		photo.setSrc("img/a_maxim7.jpg");
		photo.setIcon("img/alojamiento_mini7.png");
		photo.setHorizontal(true);
		aPhotos.push(photo);
		photo = new PhotoData();
		photo.setTitle("Los Patos Room");
		photo.setDescription("detail 2 of 3");
		photo.setSrc("img/a_maxim8.jpg");
		photo.setIcon("img/alojamiento_mini8.png");
		aPhotos.push(photo);
		photo = new PhotoData();
		photo.setTitle("Los Patos Room");
		photo.setDescription("detail 3 of 3");
		photo.setSrc("img/a_maxim9.jpg");
		photo.setIcon("img/alojamiento_mini9.png");
		aPhotos.push(photo);
		room.setPhotos(aPhotos);
		
		aFeatures = new Array();
		aFeatures.push( new FeatureData("XL Bed") );
		aFeatures.push( new FeatureData("Hair dryer") );
		aFeatures.push( new FeatureData("Air conditioning\ncold/warm") );
		aFeatures.push( new FeatureData("Private bath with shower") );
		aFeatures.push( new FeatureData("Panoramic view (rural landscape\nand partially covered facilities area)") );
		aFeatures.push( new FeatureData("Parking") );
		aFeatures.push( new FeatureData("Accessible for people with disability") );
		aFeatures.push( new FeatureData("1 additional bed can\nbe arranged (1 adult)") );
		room.setFeatures(aFeatures);
		
		aRooms.push(room);
		
		/*-- end room --*/
		
		/*-- start room --*/

		room = new RoomData();
		room.setTitle("Girasoles Room");
		room.setLongTitle('Girasoles Room "4 beds Superior"');
		room.setDescription("- 4 beds superior room");
		room.setIcon("img/icono-los-girasoles.png");
		
		aPhotos = new Array();
		photo = new PhotoData();
		photo.setTitle("Girasoles Room");
		photo.setDescription("detail 1 of 3");
		photo.setSrc("img/a_maxim10.jpg");
		photo.setHorizontal(true);
		photo.setIcon("img/alojamiento_mini10.png");
		aPhotos.push(photo);
		photo = new PhotoData();
		photo.setTitle("Girasoles Room");
		photo.setDescription("detail 2 of 3");
		photo.setSrc("img/a_maxim11.jpg");
		photo.setIcon("img/alojamiento_mini11.png");
		aPhotos.push(photo);
		photo = new PhotoData();
		photo.setTitle("Girasoles Room");
		photo.setDescription("detail 3 of 3");
		photo.setSrc("img/a_maxim12.jpg");
		photo.setHorizontal(true);
		photo.setIcon("img/alojamiento_mini12.png");
		aPhotos.push(photo);
		room.setPhotos(aPhotos);
		
		aFeatures = new Array();
		aFeatures.push( new FeatureData("1 double bed ") );
		aFeatures.push( new FeatureData("2 single beds") );
		aFeatures.push( new FeatureData("Up to 2 adult beds can be arranged") );
		aFeatures.push( new FeatureData("Hair dryer") );
		aFeatures.push( new FeatureData("Air conditioning\ncold/warm") );
		aFeatures.push( new FeatureData("Ceiling fan") );
		aFeatures.push( new FeatureData("Panoramic view\n(rural landscape, partial)") );
		aFeatures.push( new FeatureData("Parking") );
		aFeatures.push( new FeatureData("Stairs access") );
		room.setFeatures(aFeatures);
		
		aRooms.push(room);
		
		/*-- end room --*/
		
		/*-- start room --*/

		room = new RoomData();
		room.setTitle("Los Cedros Room");
		room.setLongTitle('Los Cedros Room "4 beds Standard"');
		room.setDescription("- 4 beds Standard room");
		room.setIcon("img/icono-los-cedros.png");
		
		aPhotos = new Array();
		photo = new PhotoData();
		photo.setTitle("Los Cedros Room");
		photo.setDescription("detail 1 of 3");
		photo.setSrc("img/a_maxim13.jpg");
		photo.setHorizontal(true);
		photo.setIcon("img/alojamiento_mini13.png");
		aPhotos.push(photo);
		photo = new PhotoData();
		photo.setTitle("Los Cedros Room");
		photo.setDescription("detail 2 of 3");
		photo.setSrc("img/a_maxim14.jpg");
		photo.setHorizontal(true);
		photo.setIcon("img/alojamiento_mini14.png");
		aPhotos.push(photo);
		photo = new PhotoData();
		photo.setTitle("Los Cedros Room");
		photo.setDescription("detail 3 of 3");
		photo.setSrc("img/a_maxim15.jpg");
		photo.setIcon("img/alojamiento_mini15.png");
		aPhotos.push(photo);
		room.setPhotos(aPhotos);
		
		aFeatures = new Array();
		aFeatures.push( new FeatureData("XL double bed") );
		aFeatures.push( new FeatureData("2 single beds") );
		aFeatures.push( new FeatureData("Private bath with shower") );
		aFeatures.push( new FeatureData("Hair dryer") );
		aFeatures.push( new FeatureData("Air conditioning\ncold/warm") );
		aFeatures.push( new FeatureData("Ceiling fan") );
		aFeatures.push( new FeatureData("Panoramic view\n(rural landscape, partial)") );
		aFeatures.push( new FeatureData("Parking") );
		aFeatures.push( new FeatureData("Stair access to single beds ") );
		aFeatures.push( new FeatureData("Up to 2 beds can be arranged\n(1 adult and 1 child)") );
		room.setFeatures(aFeatures);
		
		aRooms.push(room);
		
		/*-- end room --*/
				
		return aRooms;
		
	}
	
}